package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName clock
 */
@TableName(value ="clock")
@Data
public class Clock extends BaseEntity implements Serializable {
    /**
     * 提醒人id
     */
    private String remindUserId;

    /**
     * 客户id
     */
    private String clientsId;
    /**
     * 提醒类型: 1联系客户 2:合同到期 3:分期付款提醒
     */
    private Integer interviewtype;

    /**
     * 提醒事由
     */
    private String reason;

    /**
     * 提醒时间
     */
    private Date remindTime;


    /**
     * 是否有效
     */
    private Integer enabled;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Clock other = (Clock) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRemindUserId() == null ? other.getRemindUserId() == null : this.getRemindUserId().equals(other.getRemindUserId()))
            && (this.getInterviewtype() == null ? other.getInterviewtype() == null : this.getInterviewtype().equals(other.getInterviewtype()))
            && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
            && (this.getRemindTime() == null ? other.getRemindTime() == null : this.getRemindTime().equals(other.getRemindTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getClientsId() == null ? other.getClientsId() == null : this.getClientsId().equals(other.getClientsId()))
            && (this.getEnabled() == null ? other.getEnabled() == null : this.getEnabled().equals(other.getEnabled()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRemindUserId() == null) ? 0 : getRemindUserId().hashCode());
        result = prime * result + ((getInterviewtype() == null) ? 0 : getInterviewtype().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        result = prime * result + ((getRemindTime() == null) ? 0 : getRemindTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getClientsId() == null) ? 0 : getClientsId().hashCode());
        result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", remindUserId=").append(remindUserId);
        sb.append(", interviewtype=").append(interviewtype);
        sb.append(", reason=").append(reason);
        sb.append(", remindTime=").append(remindTime);
        sb.append(", enabled=").append(enabled);
        sb.append(", clientsId=").append(clientsId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}